package red.lixiang.dao;

import red.lixiang.model.Address;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface AddressDAO {
    List<Address> getAddressByMemberId(Integer id);
    int updateAddress(Address address);
    int addNewAddress(Address address);
    int deleteAddress(Integer id);
    int updateDefault(Integer id, Integer memberId);
    Address getDefault(Integer memberId);
}
